//
//  chooseColor.m
//  QRMaster
//
//  Created by myApple on 15/7/20.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import "chooseColor.h"

@implementation chooseColor

+(void)getColorByRandom:(UILabel *)label
{
    NSArray * colorArray = @[ RGBA(255, 189, 16, 1), RGBA(125, 194, 52, 1),[UIColor blackColor]];
    NSInteger count = colorArray.count;
    
    NSInteger index = random() % count;
    
    label.textColor = colorArray[index];
    
}

@end
